matrix:
include:
- os: linux
- dist: xenial
+ dist: bionic
sudo: required
services: docker
compiler: gcc
- BUILD_TYPE="docker"
- DOCKER_IMG="qtio"
- os: linux
- dist: xenial
+ dist: bionic
sudo: required
services: docker
compiler: clang
- BUILD_TYPE="docker"
- DOCKER_IMG="qtio"
- os: linux
- dist: xenial
+ dist: bionic
sudo: required
services: docker
compiler: gcc
echo "Using cached Qt."
echo "If you need to clear the cache see"
echo "https://docs.travis-ci.com/user/caching/#Fetching-and-storing-caches."
+ if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
+ # the cache is being used. modify it to reset expiration date.
+ date > ${CACHEDIR}/timestamp
+ fi
+ if [ -f "${CACHEDIR}/timestamp" ]; then
+ echo -n "Cache timestamp: "
+ cat "${CACHEDIR}/timestamp"
+ fi
else
rm -fr ${CACHEDIR}
mkdir -p ${CACHEDIR}
echo "Using cached Qt."
echo "If you need to clear the cache see"
echo "https://docs.travis-ci.com/user/caching/#Fetching-and-storing-caches."
+ if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
+ # the cache is being used. modify it to reset expiration date.
+ date > ${CACHEDIR}/timestamp
+ fi
+ if [ -f "${CACHEDIR}/timestamp" ]; then
+ echo -n "Cache timestamp: "
+ cat "${CACHEDIR}/timestamp"
+ fi
else
rm -fr ${CACHEDIR}
mkdir -p ${CACHEDIR}